/**
 * 
 */
package com.miolr.core.query;

import java.io.Serializable;

/**
 * @author iday
 * 
 */
public class Parameter implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -573336481160003524L;
	public final Object obj;
	public final Type type;

	/**
	 * @param obj
	 * @param type
	 */
	public Parameter(Object obj, Type type) {
		super();
		this.obj = obj;
		this.type = type;
	}

	public Object value() {
		return obj;
	}

	public Type type() {
		return type;
	}

	public static enum Type {
		EQUAL, NOTEQUAL, LIKE, CONTAIN, LESSTHEN, GREATTHEN, LESSEQUAL, GREATEQUAL, BETWEEN, IN, ISNULL;
	}
}
